<?php

use Phinx\Migration\AbstractMigration;

class AddColumnRealTaskIdInOrderTaskListTable extends AbstractMigration
{
    public function up()
    {
        $this->table("order_task_list")
            ->addColumn("real_task_id", "integer", [
                'null' => false,
                'default' => 0,
                'limit' => 11,
                'comment' => '乙方任务id'
            ])
            ->save();
    }

    public function down()
    {
        $this->table('order_task_list')
            ->removeColumn("real_task_id")
            ->save();
    }
}
